Sub Form_Load () ' ' Initialize the sound system ' status% = OpenSound() Select Case status Case S_SERDVNA MsgBox ("Music already in use") CloseSound End Case S_SEROFM MsgBox ("Out of Memory") CloseSound End End Select ' ' Initialize voice buffer and default conditions ' status% = SetVoiceQueueSize(1, Q_BUFF_SIZE) length% = 4 octave% = 3 mode% = S_NORMAL temp% = 120 End Sub Sub OnPlay_Timer () Static song$(5) Static songptr% ' ' Initialize array first time through ' If song$(1) = "" Then song$(1) = "O4MLT135D6P60